< previous page page_547 next page >

Page 547
8694cbadb9b1ef7075903f6f95fc1db2.gif
 5: Private Sub cmdIcon_Click()
 6: cmdIcon.Picture = LoadResPicture(5, vbResIcon)  Display the Point04 Icon
 7:
 8: End Sub
 9:
10: Private Sub cmdlabel1_Click()
11: lblString.Caption = LoadResString(1)  Display the Str_GetName String
12: End Sub
13:
14: Private Sub cmdlabel2_Click()
15: lblString.Caption = LoadResString(2)  Display the Str_GetBirthDate String
16:
17: End Sub
18:
19: Private Sub cmdMsgbox1_Click()
20: MsgBox (LoadResString(3))  Display the Str_DateError String
21: End Sub
22:
23: Private Sub cmdMsgbox2_Click()
24: MsgBox (LoadResString(4))  Display the Str_ExitMessage String
25:
26: End Sub.

The first and second command buttons will take the first or second strings respectively and use them as the text of a message box. The third and fourth command buttons will display one of two strings in the label on the form. The fifth command button will load the bitmap into the picture box; the sixth button will add an icon to its own picture property.
Executing the Project
Now that the program is coded, the only thing left to do is test it. When you run the program, it should like similar to the Figure 19.9 before you click any command buttons.
12181-0547a.gif
Figure 19.9.
The demo application before any commands
are executed.

 
< previous page page_547 next page >

If you like this book, buy it!